// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/index'
import 'babel-polyfill'
// 移动端重置页面样式表
import 'styles/reset.css'
// 1像素边框的问题 多倍屏中1像素显示多像素的问题
import 'styles/border.css'
// 引入iconfont.css样式
import 'styles/iconfont.css'
// 三百毫秒点击延迟问题，在某些机型上click事件会延迟执行
// 安装 npm install fastclick --save
import fastclick from 'fastclick'
// 轮播插件和样式
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)
fastclick.attach(document.body)

Vue.config.productionTip = false
// 样式npm install stylus --save
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  // 把 store 对象提供给 “store” 选项，这可以把 store 的实例注入所有的子组件
  store,
  components: { App },
  template: '<App/>'
})
